OBJECT FRAME
This command will return a real value of the current animation frame of the specified 3D object.
Return Float=OBJECT FRAME(Object Number)
Object Number
Integer
The object number
This command will return the current animation frame of the specified 3D object
Animation frames are counted by keyframe represented as whole numbers, but the animation can be anywhere between two keyframes which is why the frame is returned using a real value. The parameter should be specified using an integer value.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
print "BASIC3D EXPRESSION DATA"
if object exist(ObjectNumber)=1
print "frames:";total object frames(ObjectNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index